package com.eight.sbmybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.sbmybatisplus.entity.Notification;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NotificationMapper extends BaseMapper<Notification> {

        //根据id查询
    @Select("select *from notification where id=#{id}")
    public Notification findbyId(int id);
    //查询所有数据
    @Select("select *from notification")
    public List<Notification> findAll() ;



}
